package com.wlps.mapper;

import com.wlps.entity.MissionList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wlps.vo.ReceiptVo;
import com.wlps.vo.warehousecenter.pickup.MissionListCommodityWarehouseVo;
import com.wlps.vo.warehousecenter.pickup.MissionListVo;
import com.wlps.vo.warehousecenter.warehoused.WarehousedVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 任务单表(mission_list)
 * (1.当任务单状态为已分配时，不可以再进行该用例。)
 * (2.当订单形成任务单，分配具体执行任务的配送员。) Mapper 接口
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
@Repository
public interface MissionListMapper extends BaseMapper<MissionList> {
    /**
     * 查询所有任务单（非退货任务单）
     *
     * @return
     */
    List<MissionListVo> selectMissionListVoList();

    /**
     * 查询所有退货任务单
     *
     * @return
     */
    List<WarehousedVo> selectWarehousedVoList();


    /** 查询任务单商品库存量
     * @param id
     * @return
     */
    List<MissionListCommodityWarehouseVo> selectMissionListCommodityWarehouseVo(Long id);

    ReceiptVo recepitById(long id);
}
